﻿using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.PB;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.PB
{
    public partial interface IPB_LineBusiness
    {
        Task<PageResult<PB_LineDTO>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<PageResult<PB_LineInfoDTO>> GetDataListAsyncs(PageInput<PB_LineInputDTO> input);
        Task<PB_LineInfoDTO> GetTheDataAsyncS(string id);
        Task<PB_Line> GetTheDataAsync(string id);
        Task AddDataAsync(PB_Line data);
        Task UpdateDataAsync(PB_Line data);
        Task DeleteDataAsync(List<string> ids);
    }

    public class PB_LineInputDTO
    {
        public string LineId { get; set; }
        public string ProcecureId { get; set; }
    }

    [Map(typeof(PB_Line))]
    public class PB_LineInfoDTO : PB_Line
    {
        
        public List<string> Actions { get; set; } = new List<string>();
    }
}